Socket
Book a DemoInstallSign in
Socket

@invisionag/iris-react-image-container

Package Overview
Dependencies
Maintainers
22
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invisionag/iris-react-image-container

```js import ImageContainer from '@invisionag/iris-react-image-container'; ```

latest
Source
npmnpm
Version
2.6.2
Version published
Maintainers
22
Created
Source
import ImageContainer from '@invisionag/iris-react-image-container';

A component that contains an image.

Usage:

Default

import ImageContainer from '@invisionag/iris-react-image-container';

<ImageContainer>
    <svg /> // <- Some image
</ImageContainer>

scale (optional)

Sets the scale of the contained image. E.g. a scale of 2 will double it's size. The default size is set to settings.spacing.

import ImageContainer from '@invisionag/iris-react-image-container';

<ImageContainer scale={2}>
    ...
</ImageContainer>

color (optional)

Sets the color of the contained image. NOTE: this will NOT override colors set directly on the image.

import ImageContainer from '@invisionag/iris-react-image-container';

<ImageContainer color={'red'}>
    ...
</ImageContainer>

fillShape (optional)

Fills the inner shapes of the icon with white.

import ImageContainer from '@invisionag/iris-react-image-container';

<ImageContainer fillShape>
    ...
</ImageContainer>

FAQs

Package last updated on 28 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts